/*
 * @Autor: 黄旗
 * @Date: 2020-06-02 17:47:27
 */
import BasicLayout from "@/layouts/basic-layout";

const meta = {
  auth: true,
};

const pre = "home-dashboard-";

export default {
  path: "/home/dashboard",
  name: "dashboard",
  redirect: {
    name: `${pre}todoList`,
  },
  meta,
  component: BasicLayout,
  children: [
    {
      path: "todoList",
      name: `${pre}todoList`,
      meta: {
        ...meta,
        keepAlive: false,
        title: "待办事项",
      },
      component: () => import("@/pages/home/dashboard/todoList"),
    },
    {
      path: "myReport",
      name: `${pre}myReport`,
      meta: {
        ...meta,
        keepAlive: true,
        title: "我的报表",
      },
      component: () => import("@/pages/home/dashboard/myReport"),
    },
  ],
};
